#include<stdio.h>
int main()
{
    int i, n, Sum=0;
    double Average;

    for(i=1;i<=4;i++)
    {
        scanf("%d ", &n);
        Sum=Sum+n;

    }
    Average=Sum/4;
    printf("Sum = %d; Average = %0.1lf", Sum, Average);
    
    return 0;
}
